import React from 'react'
import './index.scss'

interface Iprops {
  title: string | React.ReactNode
}

const MainRoomTitle: React.FC<Iprops> = (props: Iprops) => {
  const { title } = props
  const titleType = typeof title === 'string'
  return (
    <>
      <div className='MainRoomTitle'>
        {titleType ? <div className='MainRoomTitle-title'>{title}</div> : title}
      </div>
    </>
  )
}


export default MainRoomTitle